
// Patch Search
if (document.getElementsByClassName('navbar-end')[0].firstChild.style.display=='none') setTimeout(function(){ document.getElementsByClassName('navbar-end')[0].firstChild.style.display='';},500);

//remove footer
document.getElementsByClassName('footer')[0].remove();

if (window.location.href.indexOf(':video/')>0) setTimeout(function(){
var a = document.getElementsByClassName('columns is-mobile is-multiline has-text-centered')[0];
var b = a.childNodes;

//remove some video player
if (navigator.userAgent.indexOf('Windows')>0) {
  a.removeChild(b[7]);
  a.removeChild(b[6]);
  a.removeChild(b[0]);
};

if ((navigator.userAgent.indexOf('iPhone')>0) ||(navigator.userAgent.indexOf('iPad')>0)) {
  a.removeChild(b[7]);
  a.removeChild(b[6]);
  a.removeChild(b[4]);
  a.removeChild(b[3]);  
  a.removeChild(b[1]);  
  a.removeChild(b[0]);
};

if (navigator.userAgent.indexOf('Android')>0) {
  a.removeChild(b[4]);
  a.removeChild(b[3]);  
  a.removeChild(b[1]);  
  a.removeChild(b[0]);
};
},2000);
